let res = {
	data:{
		data:{
			results:[]
		},
		status:'200'
	}
};
let total = 100;

export const fetchFinder = (params)=>{
	console.log(params);
	return new Promise(resolve => {
		setTimeout(()=>{
			let {maxResult, startIndex} = params;
			res.data.data.results = [];
			res.data.data.maxResults = maxResult;
			res.data.data.startIndex = startIndex;
			let cos = 100 - startIndex > 20  ?  startIndex+20 : startIndex +(100 - startIndex);
			for(let i = startIndex;i < cos;i++){
				res.data.data.results.push({
					id:i+1,
					name:'项目'+i,
					code:'xian_mu_'+i
				})
			};
			res.data.data.resultCount = total;
			console.log('res>>>',res)
			 resolve(res)
		},1000)
	})
};
